import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/index.vue'
import Money from '@/components/money/index.vue'
import Ious from '@/components/ious/index.vue'
import Raise from '@/components/raise/index.vue'
import Download from '@/components/special/download.vue'
import login from '@/components/login.vue'
import regist from '@/components/regist.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/money',
      name: 'money',
      component: Money
    },
    {
      path: '/ious',
      name: 'ious',
      component: Ious
    },
    {
      path: '/raise',
      name: 'raise',
      component: Raise
    },
    {
      path: '/download',
      name: 'download',
      component: Download
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/regist',
      name: 'regist',
      component: regist
    }
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
